<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta name="description" content="">
  <meta name="author" content="Dashboard">
  <meta name="keyword" content="Dashboard, Bootstrap, Admin, Template, Theme, Responsive, Fluid, Retina">
  <title>Dashio - Bootstrap Admin Template</title>
  <!-- Favicons -->
  <link href="${pageContext.request.contextPath }/img/favicon.png" rel="icon">
  <link href="${pageContext.request.contextPath }/img/apple-touch-icon.png" rel="apple-touch-icon">
  <!-- Bootstrap core CSS -->
  <link href="${pageContext.request.contextPath }/lib/bootstrap/css/bootstrap.min.css" rel="stylesheet">
  <!--external css-->
  <link href="${pageContext.request.contextPath }/lib/font-awesome/css/font-awesome.css" rel="stylesheet" />
  <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/css/zabuto_calendar.css">
  <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/lib/gritter/css/jquery.gritter.css" />
  <!-- Custom styles for this template -->
  <link href="${pageContext.request.contextPath }/css/style.css" rel="stylesheet">
  <link href="${pageContext.request.contextPath }/css/style-responsive.css" rel="stylesheet">
  <script src="${pageContext.request.contextPath }/lib/chart-master/Chart.js"></script>

  <!-- =======================================================
    Template Name: Dashio
    Template URL: https://templatemag.com/dashio-bootstrap-admin-template/
    Author: TemplateMag.com
    License: https://templatemag.com/license/
  ======================================================= -->
</head>

<body>
  <section id="container">
    <!-- **********************************************************************************************************************************************************
        TOP BAR CONTENT & NOTIFICATIONS
        *********************************************************************************************************************************************************** -->
    <!--header start-->
    <header class="header black-bg">
      <div class="sidebar-toggle-box">
        <div class="fa fa-bars tooltips" data-placement="right" data-original-title="Toggle Navigation"></div>
      </div>
      <!--logo start-->
      <a href="index.jsp" class="logo"><b>BES<span>Manage</span></b></a>
      <!--logo end-->
      <div class="top-menu">
        <ul class="nav pull-right top-menu">
          <li><a class="logout" href="${pageContext.request.contextPath }/back/login.jsp">退出登录</a></li>
        </ul>
      </div>
    </header>
    <!--header end-->
    <!-- **********************************************************************************************************************************************************
        MAIN SIDEBAR MENU
        *********************************************************************************************************************************************************** -->
    <!--sidebar start-->
    <aside>
      <div id="sidebar" class="nav-collapse ">
        <!-- sidebar menu start-->
        <ul class="sidebar-menu" id="nav-accordion">
        	<p class="centered"><a href="index.jsp">
        	<!--管理员头像-->
          <!-- 默认头像 -->
			<c:if test="${sessionScope.backUser.u_img ==null}">
				<img  src="${pageContext.request.contextPath }/images/ui-sam.jpg" class="img-circle" width="80" />
			</c:if>
			<!-- 自定义头像 -->
			<c:if test="${sessionScope.backUser.u_img !=null}">
				<img  src="${pageContext.request.contextPath }/DownloadServlet?fileName=${sessionScope.backUser.u_img}"  class="img-circle" width="80" />
			</c:if>
          </a></p>
          <!--管理员名-->
          <h5 class="centered">${sessionScope.backUser.u_name}</h5>
          <li class="mt">
            <a href="${pageContext.request.contextPath }/back/index.jsp">
              <i class="fa fa-dashboard"></i>
              <span>公司信息</span>
              </a>
          </li>
          <li class="sub-menu">
            <a  href="javascript:;">
              <i class="fa fa-desktop"></i>
              <span>用户管理</span>
              </a>
            <ul class="sub">
              <li><a href="${pageContext.request.contextPath }/back/user-information.jsp">用户信息</a></li>
              <li><a href="${pageContext.request.contextPath }/back/adduser.jsp">添加用户</a></li>
            </ul>
          </li>
          <li class="sub-menu">
            <a href="javascript:;">
              <i class="fa fa-tasks"></i>
              <span>车次管理</span>
              </a>
            <ul class="sub">
              <li><a href="${pageContext.request.contextPath }/back/bus-information.jsp">车次信息</a></li>
              <li><a href="${pageContext.request.contextPath }/back/moment-information.jsp">时刻信息</a></li>
              <li><a href="${pageContext.request.contextPath }/back/addmoment.jsp">添加时刻表</a></li>
              <li><a href="${pageContext.request.contextPath }/back/addsite.jsp">添加车次</a></li>  
            </ul>
          </li>
          <li class="sub-menu">
            <a  class="active" href="javascript:;">
              <i class="fa fa-th"></i>
              <span>站点管理</span>
              </a>
            <ul class="sub">
              <li><a href="${pageContext.request.contextPath }/back/bussite-information.jsp">站点信息</a></li>
              <li class="active"><a href="${pageContext.request.contextPath }/back/addbussite.jsp">添加站点</a></li>
              <li><a href="${pageContext.request.contextPath }/back/addbusSites.jsp">新增站点</a></li>
            </ul>
          </li>
    
          <li class="sub-menu">
            <a href="javascript:;">
              <i class="fa fa-comments-o"></i>
              <span>公告栏管理</span>
              </a>
            <ul class="sub">
              <li><a href="${pageContext.request.contextPath }/back/announcement.jsp">公告栏信息</a></li>
            </ul>
          </li>
          <li>
            <a href="${pageContext.request.contextPath }/back/baidu_maps.jsp">
              <i class="fa fa-map-marker"></i>
              <span>百度地图</span>
              </a>
          </li>
        </ul>
        <!-- sidebar menu end-->
      </div>
     <!--sidebar start-->
    </aside>
     <!--sidebar end-->
    <!--main content start-->
    <section id="main-content">
      <section class="wrapper">
        <h3><i class="fa fa-angle-right"></i>站点管理</h3>
        <!-- BASIC FORM ELELEMNTS -->
        <div class="row mt">
          <div class=" col-lg-12 col-md-12 col-sm-12">
            <h4 class="title">添加站点关联</h4>
            <div id="message"></div>
             <form class="cmxform form-horizontal style-form" id="signupForm" method="post" action="${pageContext.request.contextPath }/SiteController?op=addbussite">
                  <div class="form-group">
                    <label for="firstname" class="control-label col-lg-1">车辆编号</label>
                    <div class="col-lg-4">
                      <input type="number" name="b_id" id="b_id" value="" min="1"/>
                    </div>
                  </div>
                  <div class="form-group ">
                    <label for="password" class="control-label col-lg-1">站点编号</label>
                    <div class="col-lg-4">
                      <input type="number" name="s_id" id="s_id" value="" min="1"/>
                    </div>
                  </div>
                  <div class="form-group ">
                    <label for="lastname" class="control-label col-lg-1">站点位置</label>
                    <div class="col-lg-4">
                      <input type="number" name="s_location" id="b_location" value="" min="1"/>
                    </div>
                  </div>
                  <div class="form-group">
                    <div class="col-lg-4">
                    	<div class="col-lg-4">
                      	<button class="btn btn-theme" type="submit">提交</button>
                      </div>
                      <div class="col-lg-4">
                      	<button class="btn btn-theme04" id="empty" type="button">清空</button>
                      </div>
                    </div>
                  </div>
                </form>
            </div>

        </div>
        <!-- /row -->
      </section>
      <!-- /wrapper -->
    </section>
    <!-- /MAIN CONTENT -->
    <!--main content end-->
    <!--footer start-->
    <footer class="site-footer">
      <div class="text-center">
        <p>&copy; Copyrights <strong>Dashio</strong>. All Rights Reserved</p>
        <div class="credits"> Created with Dashio template by <a href="https://templatemag.com/">TemplateMag</a></div>
        <a href="index.jsp#" class="go-top">
          <i class="fa fa-angle-up"></i>
          </a>
      </div>
    </footer>
    <!--footer end-->
  </section>
  <!-- js placed at the end of the document so the pages load faster -->
  <script src="${pageContext.request.contextPath }/lib/jquery/jquery.min.js"></script>

  <script src="${pageContext.request.contextPath }/lib/bootstrap/js/bootstrap.min.js"></script>
  <script class="include" type="text/javascript" src="${pageContext.request.contextPath }/lib/jquery.dcjqaccordion.2.7.js"></script>
  <script src="${pageContext.request.contextPath }/lib/jquery.scrollTo.min.js"></script>
  <script src="${pageContext.request.contextPath }/lib/jquery.nicescroll.js" type="text/javascript"></script>
  <script src="${pageContext.request.contextPath }/lib/jquery.sparkline.js"></script>
  <!--common script for all pages-->
  <script src="${pageContext.request.contextPath }/lib/common-scripts.js"></script>
  <script type="text/javascript" src="${pageContext.request.contextPath }/lib/gritter/js/jquery.gritter.js"></script>
  <script type="text/javascript" src="${pageContext.request.contextPath }/lib/gritter-conf.js"></script>
  <!--script for this page-->
  <script src="${pageContext.request.contextPath }/lib/sparkline-chart.js"></script>
  <script src="${pageContext.request.contextPath }/lib/zabuto_calendar.js"></script>
</body>
<script type="text/javascript">
   $(function(){
	   $("#empty").click(function(){
		   $("#b_id").val("");
		   $("#s_id").val("");
		   $("#b_location").val("");
	   })
   })
</script>
</html>